home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
002
/
wp50util.arc
/
HEADINGS.DOC
< prev
next >
Wrap
Text File
|
1988-05-12
|
4KB
|
75 lines
HEADINGS
PROCEDURE: Put HEADINGS and ALTH.WPM in whatever subdirec-
tory you have told WordPerfect 5.0 to look to for Style
Library and Macros, respectively. Use Shift-F1, 7, to
specify that HEADINGS is your style library. (Note that in
the menu for Auxiliary Files, the entry for styles, number
6, is the ONLY one that requires an actual filename as well
as a path. Thus my answer to #6 reads C:\WP5\HEADINGS.)
Press Alt-H and answer the questions that appear. If you
don't want a conditional end of page code protecting your
header, answer zero ("0") to the question about number of
lines to keep together. The system allows for four levels
of headings, so the answer to the question about level of
headings must be some number between 1 and 4.
You will emerge with the number of the heading determined by
automatic paragraph numbering, with your cursor at the point
in a style where you should enter your text. Note that some
of the styles involve underlining (included in the style),
and that in order to get the final punctuation outside the
underline code I have put a period (full stop) in the style
itself. Thus, in those styles, you will appear to be push-
ing the period ahead of your cursor as you type, and you
should not yourself enter the final punctuation. In styles
not involving underlining I have left final punctuation to
the user.
When you press enter, the macro will close the style and
leave your cursor at the next point below the style where
you can begin entering text. Note that the macro changes
spacing to single; if you want to continue on in double
space you will have to enter a new spacing code.
POINTS ABOUT USE: The hardest part of designing this was
dealing with conditional end-of-page. You can't put the
conditional end-of-page code in the style itself, because
you don't predict how many lines to keep together. You
don't want a conditional end-of-page code mandatory for each
heading, because if you have several headings in series,
without main text separating them, you want them all togeth-
er. Conditional end-of-page codes continue in effect until
the EARLIER to occur of (1) the number of lines stated or
(2) another conditional end-of-page code. Even if the next
conditional end-of-page code is set for zero lines.
ALTH.MAC takes that into account. If you're creating a
series of sequential headings not separated by any main
text, create the first with some large number of lines held
together by a conditional-end-of-page code, and create the
rest answering zero ("0") to the number of lines to keep
together question. When the macro encounters zero in Vari-
able 2, it creates no conditional end-of-page code at all.
TABLE OF CONTENTS: You may want to adjust my styles. I
have the habit of marking ALL headings as first-level,
because that way they are reported in the ToC with a blank
line separating them. I depend on my own formatting in the
text, and not the ToC's formatting when generated, to dis-
tinguish one level from another.
CUSTOMIZE! This whole system should work right out of the
archive. Results will depend, in part, on how you have
defined paragraph numbering. Feel free to make any changes;
at least you've got a model to start from. Good luck!
Anders R. Sterner
TPF&S Consulting
99 Park Avenue, 25th Floor
New York, New York 10016
(212) 986-7714
Telex 127776 TANGILEX NYK
Compuserve ID# 47604,404